/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ParTreeVisualizer;

import java.io.FileNotFoundException;
import java.util.List;
import javax.print.PrintException;
import javax.swing.JFrame;

/**
 *
 * @author mwh
 */
public class ParallelTreeVisualizer {

    SentenceFrame frame;


    public void visualize(List<SentenceAlignement> sal) throws FileNotFoundException, PrintException {
//
//

        frame = new SentenceFrame(sal);

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }


    public void repaint() {
        frame.rePaintAlignment();
        frame.repaint();
    }
}
